from libs import common


def split_id_str(ids):
    id_arr = []
    ids_typ = type(ids)
    if ids_typ is not str:
        return id_arr
    id_str_arr = ids.split(",", -1)
    for id_str in id_str_arr:
        id_int = common.to_int(id_str)
        if id_int > 0:
            id_arr.append(id_str)
    return id_arr
